<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Family账本 - 个人信息@${username }</title>
		<link rel="shortcut icon" href="${path }/static/img/账本logo.png">
		<link href="${path }/static/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
	    <link href="${path }/static/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
	    <link href="${path }/static/css/animate.min.css" rel="stylesheet">
	    <link href="${path }/static/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	    
	</head>
	<body style="background-repeat: no-repeat;background-image: url('${path }/static/img/2017年 Bing官方主题第三波 宽屏壁纸(壁纸4).jpg');">
	<div class="col-sm-3"></div>
	<div class="col-sm-6" style="max-width: 500px; position: absolute;top:50%;left: 50%;margin-left:-250px;margin-top:-250px;">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>个人信息</h5>
			</div>
			<div class="ibox-content">
				<form class="form-horizontal m-t" id="signupForm" method="post" action="${path }/DoUpdateMember?jump=${jump}" >
					<input name = "family_id" hidden="true" value = "${family_id }">
					<input name = "member_id" hidden="true" value = "${member_id }">
					<input name = "text" hidden="true" value = "${text}">
					<div class="form-group">
						<label class="col-sm-3 control-label">用户名：</label>
						<div class="col-sm-8">
							<input required id="username" name="username_update" class="form-control" type="text" value="${username }"> 
							<span class="help-block m-b-none">
								<i class="fa fa-info-circle"></i> 这里加一点提示
							</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">密码：</label>
						<div class="col-sm-8">
							<input required id="password1" name="password1" value="${password }" aria-required="true" class="form-control" type="password">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">家庭：</label>
						<div class="col-sm-8">
							<select id = "family" name = "family" class="form-control m-b">
							    <c:forEach items = "${list }" var = "u">
							      <option value="${u.name }">${u.name }</option>
								</c:forEach>
							 </select>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-8 col-sm-offset-3">
							<button class="btn btn-primary" type="submit">提交</button>
							<button class="btn btn-danger" onclick = "javascript:history.back(-1);">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<div class="col-sm-3"></div>

	<script src="${path }/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="${path }/static/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="${path }/static/js/content.min.js?v=1.0.0"></script> -->
    <script src="${path }/static/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="${path }/static/js/plugins/validate/messages_zh.min.js"></script>
    <script src="${path }/static/js/demo/form-validate-demo.min.js"></script>
    
	<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
	<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
	<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
    
	<script>
		
		//设置家庭默认选择
		window.onload=function(){
			document.getElementById("family").value="${name}";
		}
	</script>
    <script src="${path }/static/js/plugins/layer/laydate/laydate.js"></script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
	</body>
</html>